/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.entity.floor;

import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import java.util.List;

/**
 * 楼层资源管理Entity
 * @author ZC
 * @version 2017-06-22
 */
@XmlRootElement(name = "floorcfg")
public class EleSourceFloor extends DataEntity<EleSourceFloor> {
	
	private static final long serialVersionUID = 1L;

    private String name;        // 名称
    private String volumeSelect;        // 楼层声音
    private boolean image2floor;        // 是否图片对应楼层
    private boolean sub2floor;        // 是否文字描述对应楼层
    private Integer alignment;        // 对齐方向

	private List<Floor> floors = Lists.newArrayList();
	private List<FloorNode> floornodes =  Lists.newArrayList();
	public List<User> users = null;

	@XmlTransient
	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}
	public EleSourceFloor() {
		super();
	}

	public EleSourceFloor(String id){
		super(id);
	}
	@XmlTransient
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@XmlTransient
	public String getVolumeSelect() {
		return volumeSelect;
	}

	public void setVolumeSelect(String volumeSelect) {
		this.volumeSelect = volumeSelect;
	}
	
    @XmlElement(name="image2floor")
    public boolean getImage2floor() {
		return image2floor;
	}

	public void setImage2floor(boolean image2floor) {
		this.image2floor = image2floor;
	}
	
    @XmlElement(name="sub2floor")
    public boolean getSub2floor() {
		return sub2floor;
	}

	public void setSub2floor(boolean sub2floor) {
		this.sub2floor = sub2floor;
	}
	
	public Integer getAlignment() {
		return alignment;
	}

	public void setAlignment(Integer alignment) {
		this.alignment = alignment;
	}

    @XmlElement(name="floor")
	public List<Floor> getFloors(){
		return floors;
	}
	public void setFloors(List<Floor> floors){
		this.floors = floors;
	}

	@XmlElementWrapper(name="floornodes")
    @XmlElement(name="node")
	public List<FloorNode> getFloornodes(){
		return floornodes;
	}
	public void setFloornodes(List<FloorNode> floornodes){
		this.floornodes = floornodes;
	}

}